home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Tools - Objects
/
Virtual User 1.0
/
Example Scripts
/
CloseAllWindows.vu
next >
Wrap
Text File
|
1991-01-25
|
490b
|
25 lines
#
# File: close_all_windows.vu
#
# Contains: This script tries to close all windows that are open.
#
# Written by: P Nagarajan
#
# Copyright: © 1989 by Apple Computer, Inc., all rights reserved.
#
# Change History:
#
# 4/3/89 naga creation
#
# To Do:
#
all_windows := collect [window];
total_windows := card(all_windows);
for i:= 1 to total_windows do
begin
if match[button t: 'OK' w:[window o:1]]!
select [button t: 'OK' w:[window o:1]]!;
else
close [window o:1];
end; #for